{extends file='layout/front.html'}

{block name='main'}
<script type="text/javascript" charset="utf-8">
$('.menu3').attr('class', 'menu3_cur');
</script>
<div class="main_t">
	<ul class="main_tab">
		<li><a href="#" onclick="return false" class="current"><span>帐户管理</span></a></li>
    <!-- <li><a href="password.html"><span>密码修改</span></a></li> -->
	</ul>
</div>
<div class="main_c">
	<div class="main_top_btn_box pt10 pb20"><a href="bind.html?url=account/bind.html" class="add_account">添加微博帐户</a></div>
	<ul class="add_account_list">
	{foreach $accounts as $val}
			<li class="fnt_gray_dark"> <a href="account/delete.html?account_id={$val.id}" class="del_account">删除此帐号</a> <img src="{$val.profile_image_url}" width="60" height="60" alt="{$val.name}" style="margin-right: 20px;"> <input type="hidden" name="id" value="{$val.id}" /> <h3 class="fnt_large">{$val.name}</h3> <p>{$val.location}</p> <p>关注 {$val.friends_count} 人<span style="padding-left: 30px">粉丝 {$val.followers_count} 人</span></p> </li>
	{foreachelse}
		<li>还没有添加用户</li>
	{/foreach}
	</ul>
</div>
<script type="text/javascript" charset="utf-8">
$('a.del_account').click(function(){
  return confirm('确认取消绑定?');
});
</script>
{/block}
